<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <style>
        .box{
            background-color: #ff0;
        }
        .textColor{
            color: #ffffff;
        }
        .textSize{
            font-size: 50px;
        }
</style>
    <script type="text/javascript" src="vueStudyTest/vue.js"></script>
</head>

<body>
    <div id="app">     
        <span class="box" :class="classObject">我是字</span> 
    </div> 
    <script> 
        var app=new Vue({ 
            el: "#app", 
            data:{
                classObject:{
                    'textColor': false,
                    'textSize': true
                }
            }
        }) 
    </script>
    
</body>
</html>
